﻿@using BemEstarEmprego.Entities
<div style="margin: 20px;">
	Total de Empresas: <strong>
		@ViewData["totalEmpresa"]</strong>
	<div style="background: #C6C8CF; padding: 10px 10px; -moz-border-radius: 12px; border-radius: 12px;">
		<div style="background: #C3CBE6;">
			<table class="table table-hover">
				<tr>
					<th>
						ID
					</th>
					<th>
						Razão Social
					</th>
					<th>
						CNPJ
					</th>
					<th>
						Telfone
					</th>
				</tr>
				@foreach (empresa _empresa in (List<empresa>)ViewData["empresas"])
	{
					<tr>
						<td>
							@Html.ActionLink(_empresa.ID.ToString(), "Editar" + "/" + _empresa.ID.ToString())
						</td>
						<td>
							@_empresa.RAZAO_SOCIAL
						</td>
						<td>
							@_empresa.CNPJ
						</td>
						<td>
							@_empresa.TELEFONE
						</td>
					</tr>
	}
			</table>
		</div>
		<strong>
			@if ((string)ViewData["pageLinks"] != "")
   { @Html.Raw(ViewBag.Links) }
		</strong>
	</div>
	<br />
</div>
